package com.ruoyi.mes.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mes.mapper.WkspMaterialListMapper;
import com.ruoyi.mes.domain.WkspMaterialList;
import com.ruoyi.mes.service.IWkspMaterialListService;

/**
 * 领料清单Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-13
 */
@Service
public class WkspMaterialListServiceImpl implements IWkspMaterialListService 
{
    @Autowired
    private WkspMaterialListMapper wkspMaterialListMapper;

    /**
     * 查询领料清单
     * 
     * @param id 领料清单主键
     * @return 领料清单
     */
    @Override
    public WkspMaterialList selectWkspMaterialListById(Long id)
    {
        return wkspMaterialListMapper.selectWkspMaterialListById(id);
    }

    /**
     * 查询领料清单列表
     * 
     * @param wkspMaterialList 领料清单
     * @return 领料清单
     */
    @Override
    public List<WkspMaterialList> selectWkspMaterialListList(WkspMaterialList wkspMaterialList)
    {
        return wkspMaterialListMapper.selectWkspMaterialListList(wkspMaterialList);
    }

    /**
     * 新增领料清单
     * 
     * @param wkspMaterialList 领料清单
     * @return 结果
     */
    @Override
    public int insertWkspMaterialList(WkspMaterialList wkspMaterialList)
    {
        return wkspMaterialListMapper.insertWkspMaterialList(wkspMaterialList);
    }

    /**
     * 修改领料清单
     * 
     * @param wkspMaterialList 领料清单
     * @return 结果
     */
    @Override
    public int updateWkspMaterialList(WkspMaterialList wkspMaterialList)
    {
        return wkspMaterialListMapper.updateWkspMaterialList(wkspMaterialList);
    }

    /**
     * 批量删除领料清单
     * 
     * @param ids 需要删除的领料清单主键
     * @return 结果
     */
    @Override
    public int deleteWkspMaterialListByIds(Long[] ids)
    {
        return wkspMaterialListMapper.deleteWkspMaterialListByIds(ids);
    }

    /**
     * 删除领料清单信息
     * 
     * @param id 领料清单主键
     * @return 结果
     */
    @Override
    public int deleteWkspMaterialListById(Long id)
    {
        return wkspMaterialListMapper.deleteWkspMaterialListById(id);
    }
}
